<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{mmSupplierAddrBean.id}"/>
		<f:event type="preRenderView" listener="#{mmSupplierAddrBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Mm Supplier Addr"/>

	<ui:define name="header">
		Mm Supplier Addr
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty mmSupplierAddrBean.id}">
				Edit existing Mm Supplier Addr
			</c:when>
			<c:otherwise>
				Create a new Mm Supplier Addr
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="mmSupplierAddrBeanMmSupplierAddrSysAddrType" value="Sys Addr Type:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysAddrTypeBean.converter}" id="mmSupplierAddrBeanMmSupplierAddrSysAddrType" value="#{mmSupplierAddrBean.mmSupplierAddr.sysAddrType}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysAddrTypeBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="mmSupplierAddrBeanMmSupplierAddrSysAddrType" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmSupplierAddrBeanMmSupplierAddrMmSupplier" value="Mm Supplier:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{mmSupplierBean.converter}" id="mmSupplierAddrBeanMmSupplierAddrMmSupplier" value="#{mmSupplierAddrBean.mmSupplierAddr.mmSupplier}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{mmSupplierBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="mmSupplierAddrBeanMmSupplierAddrMmSupplier" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmSupplierAddrBeanMmSupplierAddrSysAddr01" value="Sys Addr 01:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysAddr01Bean.converter}" id="mmSupplierAddrBeanMmSupplierAddrSysAddr01" value="#{mmSupplierAddrBean.mmSupplierAddr.sysAddr01}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysAddr01Bean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="mmSupplierAddrBeanMmSupplierAddrSysAddr01" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmSupplierAddrBeanMmSupplierAddrSupplierAddrNo" value="Supplier Addr No:"/>
				<h:panelGroup>
					<h:inputText id="mmSupplierAddrBeanMmSupplierAddrSupplierAddrNo" maxLength="20" value="#{mmSupplierAddrBean.mmSupplierAddr.supplierAddrNo}"/>
					<h:message for="mmSupplierAddrBeanMmSupplierAddrSupplierAddrNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmSupplierAddrBeanMmSupplierAddrSupplierAddrMoo" value="Supplier Addr Moo:"/>
				<h:panelGroup>
					<h:inputText id="mmSupplierAddrBeanMmSupplierAddrSupplierAddrMoo" maxLength="10" value="#{mmSupplierAddrBean.mmSupplierAddr.supplierAddrMoo}"/>
					<h:message for="mmSupplierAddrBeanMmSupplierAddrSupplierAddrMoo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmSupplierAddrBeanMmSupplierAddrSupplierAddrSoi" value="Supplier Addr Soi:"/>
				<h:panelGroup>
					<h:inputText id="mmSupplierAddrBeanMmSupplierAddrSupplierAddrSoi" maxLength="100" value="#{mmSupplierAddrBean.mmSupplierAddr.supplierAddrSoi}"/>
					<h:message for="mmSupplierAddrBeanMmSupplierAddrSupplierAddrSoi" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmSupplierAddrBeanMmSupplierAddrSupplierAddrRoad" value="Supplier Addr Road:"/>
				<h:panelGroup>
					<h:inputText id="mmSupplierAddrBeanMmSupplierAddrSupplierAddrRoad" maxLength="100" value="#{mmSupplierAddrBean.mmSupplierAddr.supplierAddrRoad}"/>
					<h:message for="mmSupplierAddrBeanMmSupplierAddrSupplierAddrRoad" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmSupplierAddrBeanMmSupplierAddrSupplierAddrBuilding" value="Supplier Addr Building:"/>
				<h:panelGroup>
					<h:inputText id="mmSupplierAddrBeanMmSupplierAddrSupplierAddrBuilding" maxLength="100" value="#{mmSupplierAddrBean.mmSupplierAddr.supplierAddrBuilding}"/>
					<h:message for="mmSupplierAddrBeanMmSupplierAddrSupplierAddrBuilding" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmSupplierAddrBeanMmSupplierAddrSupplierAddrFloor" value="Supplier Addr Floor:"/>
				<h:panelGroup>
					<h:inputText id="mmSupplierAddrBeanMmSupplierAddrSupplierAddrFloor" maxLength="50" value="#{mmSupplierAddrBean.mmSupplierAddr.supplierAddrFloor}"/>
					<h:message for="mmSupplierAddrBeanMmSupplierAddrSupplierAddrFloor" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmSupplierAddrBeanMmSupplierAddrSupplierAddrRoom" value="Supplier Addr Room:"/>
				<h:panelGroup>
					<h:inputText id="mmSupplierAddrBeanMmSupplierAddrSupplierAddrRoom" maxLength="50" value="#{mmSupplierAddrBean.mmSupplierAddr.supplierAddrRoom}"/>
					<h:message for="mmSupplierAddrBeanMmSupplierAddrSupplierAddrRoom" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmSupplierAddrBeanMmSupplierAddrSupplierAddrName01" value="Supplier Addr Name 01:"/>
				<h:panelGroup>
					<h:inputText id="mmSupplierAddrBeanMmSupplierAddrSupplierAddrName01" maxLength="100" value="#{mmSupplierAddrBean.mmSupplierAddr.supplierAddrName01}"/>
					<h:message for="mmSupplierAddrBeanMmSupplierAddrSupplierAddrName01" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmSupplierAddrBeanMmSupplierAddrSupplierAddrPostcode" value="Supplier Addr Postcode:"/>
				<h:panelGroup>
					<h:inputText id="mmSupplierAddrBeanMmSupplierAddrSupplierAddrPostcode" maxLength="20" value="#{mmSupplierAddrBean.mmSupplierAddr.supplierAddrPostcode}"/>
					<h:message for="mmSupplierAddrBeanMmSupplierAddrSupplierAddrPostcode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmSupplierAddrBeanMmSupplierAddrSupplierAddrPhoneNo" value="Supplier Addr Phone No:"/>
				<h:panelGroup>
					<h:inputText id="mmSupplierAddrBeanMmSupplierAddrSupplierAddrPhoneNo" maxLength="20" value="#{mmSupplierAddrBean.mmSupplierAddr.supplierAddrPhoneNo}"/>
					<h:message for="mmSupplierAddrBeanMmSupplierAddrSupplierAddrPhoneNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmSupplierAddrBeanMmSupplierAddrSupplierAddrFaxNo" value="Supplier Addr Fax No:"/>
				<h:panelGroup>
					<h:inputText id="mmSupplierAddrBeanMmSupplierAddrSupplierAddrFaxNo" maxLength="20" value="#{mmSupplierAddrBean.mmSupplierAddr.supplierAddrFaxNo}"/>
					<h:message for="mmSupplierAddrBeanMmSupplierAddrSupplierAddrFaxNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmSupplierAddrBeanMmSupplierAddrSupplierAddrMobileNo" value="Supplier Addr Mobile No:"/>
				<h:panelGroup>
					<h:inputText id="mmSupplierAddrBeanMmSupplierAddrSupplierAddrMobileNo" maxLength="20" value="#{mmSupplierAddrBean.mmSupplierAddr.supplierAddrMobileNo}"/>
					<h:message for="mmSupplierAddrBeanMmSupplierAddrSupplierAddrMobileNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{mmSupplierAddrBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty mmSupplierAddrBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{mmSupplierAddrBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{mmSupplierAddrBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>